import React from 'react';
import {
    // BrowserRouter as Router,
    Route,
    // Link
} from 'react-router-dom' // 引入路由组件
class UserCenter extends React.Component {
    render () {
        return this.props.routes.map((route, key) => {
            return <Route path={route.path} key={key} render={() => <route.component {...this.props}></route.component>}></Route>
        })
    }
}

export default UserCenter;